package copyengine.network.roomStructure.executeLayer
{

	public final class CENetworkRoomExecuteHandleNotification
	{
		//================================================================//
		//                                                                   RECEIVE                                                                     //
		//================================================================//

		//开始P2P加速
		//当发送数据包为RECEIVE_SEND_DATA_MIX时候会
		//尝试用FlashP2P发送数据,无法发送的情况再用Socket转发
		public static const RECEIVE_START_P2P_BOOSTING:String = "CENetworkRoomExecuteHandleNotification::ReceiveStartP2PBoosting";

		//关闭P2P加速
		//当发送数据包为RECEIVE_SEND_DATA_MIX时候会
		//不在尝试用P2P转发而是用采用Socket转发
		public static const RECEIVE_END_P2P_BOOSTING:String = "CENetworkRoomExecuteHandleNotification::ReceiveEndP2PBoosting";

		//开始连接SocketWarp
		public static const RECEIVE_START_CONNECT_SOCKET_SERVER:String = "CENetworkRoomExecuteHandleNotification::ReceiveStartConnectSocketServer";

		//开始断开SocketWarp
		public static const RECEIVE_END_CONNECT_SOCKET_SERVER:String = "CENetworkRoomExecuteHandleNotification::ReceiveEndConnectSocketServer";

		//采用混合方式发送数据(Socket+RTMFP),需要首先调用RECEIVE_START_P2P_BOOSTING开始加速模式
		public static const RECEIVE_SEND_DATA_MIX:String = "CENetworkRoomExecuteHandleNotification::ReceiveSendDataMix";
		//采用Socket方式发送数据(不会尝试用TRMFP进行转发)
		public static const RECEIVE_SEND_DATA_SOCKET:String = "CENetworkRoomExecuteHandleNotification::ReceiveSendDataSocket";

		//================================================================//
		//                                                                     SEND                                                                       //
		//================================================================//

		public static const SEND_SOCKET_SERVER_CONNECTED:String = "CENetworkRoomExecuteHandleNotification::SendSocketServerConnected";
		public static const SEND_SOCKET_SERVER_CLOSED:String = "CENetworkRoomExecuteHandleNotification::SendSocketServerClosed";

		//接收到发来的数据(有可能是Socket,也有可能是RTMFP)
		public static const SEND_RECEIVE_INCOMING_DATA:String = "CENetworkRoomExecuteHandleNotification::SendReceiveIncomingData";


		//================================================================//
		//                                                                ERROR                                                                          //
		//================================================================//

		//系统Catch到一个错误信息
		public static const NOTIFICATION_SYSTEM_CATCH_AN_ERROR:String = "CENetworkRoomModelConfig::NotificationSystemCatchAnError";

		//ERROR Type : RTMFP 发生错误
		public static const ERROR_TYPE_RTMFP_CHANEL:String = "CENetworkRoomModelConfig::ErrorTypeRTMFPChanel";

		//ERROR Type : Socket 发生错误
		public static const ERROR_TYPE_SOCKET_CHANEL:String = "CENetworkRoomModelConfig::ErrorTypeSocketChanel";

		public function CENetworkRoomExecuteHandleNotification()
		{
		}
	}
}
